Skip to content

For 8.3/import openssh 9.9p1 27.el10.alma.1.src.rpm - #16

Open
LucienLassalle wants to merge 4 commits into
8.3from
for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm
Open

For 8.3/import openssh 9.9p1 27.el10.alma.1.src.rpm#16
LucienLassalle wants to merge 4 commits into
8.3from
for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm

Conversation

@LucienLassalle

@LucienLassalle LucienLassalle commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Main information

Work Item Reference

XCPNG-3707

Related changes (optional)

flowchart LR
    A[OpenSSH] -->|BuildRequires| B[libfido2] --> | BuildRequires | C[libcbor]
    A[OpenSSH] --> | BuildRequires | D[OpenSSL > 3.5.0]
    B --> | BuildRequires | D
    
    style A fill:#4CAF50,color:#fff
Loading

The build order is important:

  1. libcbor first.
  2. OpenSSL 3.5.5-1.3 second.
  3. libfido2 third.
  4. OpenSSH (This package) fourth.

Context & Motivation

XenServer decided to disable OpenSSH by default, meaning they no longer backport most security patches.
Consequently, to ensure maintainability, the decision was made to use an Alma/CentOS base.
Choosing Alma provides a common base for XCP-ng 9, thereby eliminating the need to maintain two completely different versions.
This version of OpenSSH also introduces several features:

  • Post-Quantum support
  • FIDO support

Release Target

  • We already defined a release target with the release team.
  • I haven't talked with the release team, but I have a proposed target.
  • I'm not sure, let's talk about it.

I proposed "next+1" to follow OpenSSL.


Release Notes and Documentation

Explain the change to users

Updated to OpenSSH 9.9p1.
Fixed the following minor CVEs:

Support for user configurations in /etc/ssh/ssh_client.d/
Our OpenSSH now supports Post-Quantum Key Exchange!
Our OpenSSH now supports FIDO2 keys!
Additional key algorithms are also available.

Attention points

No breaking changes.

Documentation update needed

  • Yes
  • No
  • I'm not sure, help me

We need to explain how to generate a post-quantum key pair and how to use FIDO keys with OpenSSH on XCP-ng. We should also provide configuration advice for OpenSSH.

PR links: xcp-ng-org PR #531


Testing and regression avoidance

What tests have you performed?

Installation on a host, configuration verification, and use of each algorithm, including post-quantum ones.
I tested and it works with:

  • Yubico - YubiKey 5C
  • Nitrokey 3A NFC

What manual tests should be performed after the build, and by whom?

In fact, the FIDO support should be rechecked. This test requires FIDO keys (Yubikey/Nitrokey for example)
ssh-keygen -t ed25519-sk -f ~/xcpng_test_openssh_sk_fido -N ""
ssh-copy-id -i ~/xcpng_test_openssh_sk_fido root@{host}
ssh -i ~/xcpng_test_openssh_sk_fido root@{host}

What's covered by the xcp-ng-tests test suite?

Connect via standard SSH and verify an include statement in the configuration.

What tests have been or will be added to CI for this change? If none, explain why.

Verification of each algorithm, use of scp (via sftp and legacy), verification of FIDO support.
XCP-ng-tests PR#684


Xen Orchestra Impact

Does this affect existing features in Xen Orchestra, or add new features that could be useful?

  • Yes
  • No

Signed-off-by: Lucas RAVAGNIER <lucas.ravagnier@vates.tech>
@LucienLassalle
LucienLassalle force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch 6 times, most recently from dfa39e6 to 90a755a Compare August 26, 2026 14:16
@LucienLassalle

Copy link
Copy Markdown
Contributor Author

@LucienLassalle
LucienLassalle force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch from 90a755a to e942b1a Compare August 27, 2026 11:36
@LucienLassalle

Copy link
Copy Markdown
Contributor Author

Scratch Build: https://koji.xcp-ng.org/taskinfo?taskID=112304

@LucienLassalle
LucienLassalle marked this pull request as ready for review August 27, 2026 12:37
@LucienLassalle
LucienLassalle requested a review from a team as a code owner August 27, 2026 12:37
@LucienLassalle
LucienLassalle requested a review from p0sql August 27, 2026 13:10
Comment thread SPECS/openssh.spec
# XCP-ng ships its own hardened sshd_config/ssh_config in place of the
# upstream defaults; these fully replace them and are
# reinstalled on every package upgrade.
install -m644 %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/ssh/ssh_config

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you explicitly renamed the files then I would use the actual filename here instead of macro to make sure we're coping from the original source (to prevent other file to be listed in SOURCE25)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's your preferences; personally, I prefer having xcpng_sshd_conf, but since you removed it in favor of sshd_conf, I find it less clear.

Comment thread SPECS/openssh.spec Outdated
Comment thread SPECS/openssh.spec
functions it adds to sshkey.c; unnamed parameters are invalid in a C
function definition and our build compiler rejects them with
"parameter name omitted".
- *** PREVIOUS CHANGELOG ***

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there other project using this form ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know; it was recommended to me by @vxgmichel

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, What do you think about just adding a line about "Rebase on new upstream and merge previous changes on XS-8.3 base:" listed as nested.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that mean we'd lose the history? If so, I'm not very confident

@rzr rzr Aug 31, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I said adding not replacing (nothing will be lost) ;) just to keep trace of the strategy change

Comment thread SOURCES/ssh_config
@LucienLassalle
LucienLassalle force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch from e942b1a to c6c6888 Compare August 31, 2026 14:38
Lucas RAVAGNIER added 2 commits August 31, 2026 16:43
….alma.1.src.rpm

XCP-ng does not have the systemd-rpm-macros package, in order
to compensate for this lack, certain macros have been adapted.
XCP-ng does not need gtk3 because we disable gnome-askpass.
Due to the fact that our gcc is old, our compiler refuses the
parameters of a patch, patch 2000 was therefore added to ensure
that it works on our platform.

Signed-off-by: Lucas RAVAGNIER <lucas.ravagnier@vates.tech>
Version 9.9p1-30 does not yet have an src rpm to my knowledge,
so I retrieved the fixes from their git, and I also integrated
the fixes for CVE-2026-60000 and CVE-2026-60001.

But as a result they correct the following CVE:
- CVE-2026-59995
- CVE-2026-59999
- CVE-2026-73281
- CVE-2026-73282
- CVE-2026-73283

Knowing that CVE-2026-5996 and CVE-2026-60002 have already been
corrected in the previous import. CVE-2026-59998 appears to be
a documentation mistake.
Only CVE-2026-59997 is not yet corrected, it is deferred on major
distros, and as a result it requires highly improbable actions.

Signed-off-by: Lucas RAVAGNIER <lucas.ravagnier@vates.tech>
Comment thread SOURCES/sshd_config Outdated
Comment thread SOURCES/sshd_config Outdated
Comment thread SOURCES/ssh_config
Comment thread SOURCES/ssh_config Outdated
Comment thread SOURCES/sshd_config Outdated
Comment thread SOURCES/sshd_config
@rzr
rzr force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch from c6c6888 to 796c94f Compare August 31, 2026 15:01
@LucienLassalle
LucienLassalle force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch 2 times, most recently from 5e7c5f3 to 3ade70c Compare August 31, 2026 15:42
Redhat had their own configuration which could surpass ours,
it will no longer be packaged.

From now on, we keep maintaing the two configuration files with
settings that do not regress to our previous version. Support for
post-quantum algorithms is included, and brute-force protection
remains enabled by default (hardening).  The removal of the MOTD is
due to the fact that PAM now handles it, rather than SSH.

Signed-off-by: Lucas RAVAGNIER <lucas.ravagnier@vates.tech>
Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
@LucienLassalle
LucienLassalle force-pushed the for-8.3/import_openssh-9.9p1-27.el10.alma.1.src.rpm branch from 3ade70c to 5e6111c Compare August 31, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants